﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace TeamOPSchoolCup.Domain.POCO
{
  public class Sport : IComparable<Sport>
  {
    public int SportId { get; set; }
    public string Name { get; set; }

    [Required]
    [StringLength(3, ErrorMessage = "The abbreviation has a maximum length of 3 characters.")]
    public string Abbreviation { get; set; }

    //public List<Advertisement> Advertisements { get; set; }
    public List<Team> Teams { get; set; }
    public List<Event> Events { get; set; }

    public int CompareTo(Sport other)
    {
      return Name.CompareTo(other.Name);
    }
  }
}
